
<link rel="stylesheet" href="../addons/jy_sendgoods/resource/css/style.css" />
<div class='fui-page creditshop-index-page'>
	<div class='fui-content navbar'>
		<div class='fui-swipe' data-transition="500" data-gap="1">
		    <div class='fui-swipe-wrapper'>
		
				<a ng-repeat="adv in pagedata.advs" ng-if="!empty(adv.link)" class='fui-swipe-item' href="{{adv.link}}">
					<img src="{{tomedia(adv.thumb)}}" alt="{{adv.advname}}" onerror="this.src='../core/resource/images/nopic.jpg'"/>
				</a>
				<a ng-repeat="adv in pagedata.advs" ng-if="empty(adv.link)" class='fui-swipe-item' href="javascript:;">
					<img src="{{tomedia(adv.thumb)}}" alt="{{adv.advname}}" onerror="this.src='../core/resource/images/nopic.jpg'"/>
				</a>
		    </div>
		    <div class='fui-swipe-page'></div>
		</div>
		
		<div ng-if="pagedata.category.length>0" class="lynn_index_menu row" style="margin:0;padding:0.5rem">
			<a ng-repeat="cate in pagedata.category" href="javascript:;" ng-click="access_json('jy_sendgoods/act//cid='+cate.id)" >
				<img src="{{tomedia(cate.image)}}" alt="{{cate.title}}" onerror="this.src='../core/resource/images/nopic.jpg'">
				<p>{{cate.title}}</p>
			</a>
		</div>
		<div class="fui-tab fui-tab-danger">
			<a ng-click="pagedata.getlist(1);pagedata.status=1" ng-class="{'active':pagedata.status==1}" class="external" href="" ng-style="{'color': ifelse(pagedata.status==1,inav.params.activecolor,inav.params.color),'background': ifelse(pagedata.status==1,inav.params.activebackground,inav.params.background)}">最新商品</a>
			<a ng-click="pagedata.getlist(2);pagedata.status=2" ng-class="{'active':pagedata.status==2}" class="external" href="" ng-style="{'color': ifelse(pagedata.status==2,inav.params.activecolor,inav.params.color),'background': ifelse(pagedata.status==2,inav.params.activebackground,inav.params.background)}">商品预告</a>
		</div>
		<div class="lynn_item"></div>
		<div class="lynn_index_rec">
			<p ng-if="pagedata.status==1"><i></i><span>最新商品</span></p>
			<p ng-if="pagedata.status==2"><i></i><span>预告商品</span></p>
			<span>H O T S A L E</span>
		</div>
		<ul class="lynn_index_list_ul row" style="padding-left:10px;padding-right:10px">
			<li ng-repeat="item in pagedata.list">
				<div class="fui-goods-item">
		  <a href="javascript:" ng-click="access_json('/detail//id='+item.id)">
		  <div class="image" style="background-image: url('{{tomedia(item.image)}}')">
				<div ng-show="item.total<=0" class="salez" style="background-image: url('{{tomedia(pagedata.setting.shop.saleout)}}'); "></div>
		  </div>
			</a>
			<div  class="detail" ng-click="access_json('/detail//id='+item.id)">
				<a  href="javascript:">
					   <div class="name">{{item.title}}</div>
				</a>
				<div class="price">
				   <span class="text">￥{{item.goods.price}} <s style="font-size: 12px;color: #BBBBBB">￥{{item.goods.originalprice}}</s></span>
				   <span  class="buy"  >{{'优品送礼'}}</span>
				</div>
			</div>
			
		</div>
			</li>
		
		</ul>
		<div ng-if="pagedata.list.length<=0" class="fui-message fui-message-popup in">
			<div class="icon ">
				<i class="icon jinyunicon icon-information"></i>
			</div>
			<div class="content">暂无任何商品</div>
		</div>
	

	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.status = 1; 
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.active='getingacts';
scope.pagedata.type=1;
scope.tool.get_list('jy_sendgoods/index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_sendgoods/index/getlist/');
}
</script>
<div ng-if="gotop" class="gotop" onclick="window.scrollTo('0','0')"></div> 